# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=xvfb-run
pkgver=1.20.10.3 # Last digit is Debian's pkgrel
_pkgver=${pkgver%.*}-${pkgver##*.}
pkgrel=2
pkgdesc="A wrapper for the Xvfb command which simplifies the task of running commands."
url="https://salsa.debian.org/xorg-team/xserver/xorg-server/tree/debian-unstable/debian/local"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # No test suite
depends="xauth xvfb cmd:fmt mcookie"
subpackages="$pkgname-doc"
source="https://salsa.debian.org/xorg-team/xserver/xorg-server/raw/xorg-server-2_$_pkgver/debian/local/xvfb-run
	https://salsa.debian.org/xorg-team/xserver/xorg-server/raw/xorg-server-2_$_pkgver/debian/local/xvfb-run.1
	"
builddir="$srcdir/"

package() {
	install -Dm755 xvfb-run "$pkgdir"/usr/bin/xvfb-run
	install -D xvfb-run.1 "$pkgdir"/usr/share/man/man1/xvfb-run.1
}

sha512sums="
d6a5f916c9f36d8f7259867a32c358a943a5e2f4d8cfde7866904fb0cb3b3042adf24b409e582dd36c601ba4e1d7c4af1d958a71bfebf029f615e67e055c443f  xvfb-run
78b2bdf8f6e0e7dfb8974c0387d07cc00bdb6241ff3929ad07bd1c0bb54cf613fb308583d0237aa5e7af36b5643ecb7784731a6ef396f4feef4cfbb90d2e2cc2  xvfb-run.1
"
